<%--
  Created by IntelliJ IDEA.
  User: hqqs
  Date: 2020/10/11
  Time: 8:20 上午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@include file="admin_menu.jsp"%>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i>
                <a href="admin_index.jsp">首页</a>
                <span class="crumb-step">&gt;</span>
                <a class="crumb-name" href="admin_cate.jsp">图书管理</a>
                <span class="crumb-step">&gt;</span>
                <span>新增图书</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action=<%=request.getContextPath()%>"/manageHtml/admin_doProdadd" method="post"  enctype="multipart/form-data" id="myform" name="myform" >
                   <table class="insert-tab" width="100%">
                        <tbody>
                        <tr>
                            <th><i class="require-red">*</i>图书名称：</th>
                            <td>
                                <input class="common-text required" id="title" name="proName" size="50" value="" type="text">
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>图书类别：</th>
                            <td>
                                <select class="common-text required" name="proCate" >

                                    <c:forEach var="f" items="${fatherList}">
<%--                                        父类不可被选择--%>
<%--                                        只能在其中添加图书--%>
                                        <option value="${f.CATE_ID}" disabled="disabled">${f.CATE_NAME}</option>
                                        <c:forEach var="c" items="${childList}">
                                            <c:if test="${c.CATE_PARENT_ID == f.CATE_ID}">
                                                <option value="${f.CATE_ID}-${c.CATE_ID}" >&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp｜-${c.CATE_NAME}</option>

                                            </c:if>
                                        </c:forEach>
                                    </c:forEach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>图书图片：</th>
                            <td>
                                <input class="common-text required" id="title" name="proPic" size="50" value="" type="file">
                            </td>
                        </tr>

                        <tr>
                            <th><i class="require-red">*</i>图书价格：</th>
                            <td>
                                <input class="common-text required" id="title" name="proPrice" size="50" value="" type="text">
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>图书描述：</th>
                            <td>
                                <input class="common-text required" id="title" name="proInfo" size="50" value="" type="text">
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>图书库存：</th>
                            <td>
                                <input class="common-text required" id="title" name="proStock" size="50" value="" type="text">
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>
